package com.visizen.wisdomclass.server.client;

import com.visizen.wisdomclass.server.model.WcUserTalk;
import com.visizen.wisdomclass.server.model.WcUserTalkExample;
import java.util.List;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface WcUserTalkMapper {
    @SelectProvider(type=WcUserTalkSqlProvider.class, method="countByExample")
    int countByExample(WcUserTalkExample example);

    @DeleteProvider(type=WcUserTalkSqlProvider.class, method="deleteByExample")
    int deleteByExample(WcUserTalkExample example);

    @Insert({
        "insert into wc_user_talk (ID, SESSION_ID, ",
        "USER_ID)",
        "values (#{ID,jdbcType=VARCHAR}, #{SESSION_ID,jdbcType=VARCHAR}, ",
        "#{USER_ID,jdbcType=VARCHAR})"
    })
    int insert(WcUserTalk record);

    @InsertProvider(type=WcUserTalkSqlProvider.class, method="insertSelective")
    int insertSelective(WcUserTalk record);

    @SelectProvider(type=WcUserTalkSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="ID", property="ID", jdbcType=JdbcType.VARCHAR),
        @Result(column="SESSION_ID", property="SESSION_ID", jdbcType=JdbcType.VARCHAR),
        @Result(column="USER_ID", property="USER_ID", jdbcType=JdbcType.VARCHAR)
    })
    List<WcUserTalk> selectByExample(WcUserTalkExample example);

    @UpdateProvider(type=WcUserTalkSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") WcUserTalk record, @Param("example") WcUserTalkExample example);

    @UpdateProvider(type=WcUserTalkSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") WcUserTalk record, @Param("example") WcUserTalkExample example);
}